%
% File for defining LaTeX templates to be used in the document.
%
\newcommand{\real}{\hbox{\bf R}}

%\newcommand{\real}{\mathbb{R}}
\newcommand{\nat}{\mathbb{N}}
\newcommand{\eme}{\mathcal{M}}
\newcommand{\emediff}{\mathcal{M'}}
\newcommand{\emeh}{\widehat{\mathcal{M}}}
\newcommand{\emehdiff}{\widehat{\mathcal{M}}'}
\newcommand{\ere}{\mathcal{R}}
\newcommand{\erediff}{\mathcal{R'}}

% Define a template for writing pseudocode.
\newcounter{line_number}
\newenvironment{pseudocode}{
	\setcounter{line_number}{0}
	\begin{small}
	\begin{tt}
	\begin{tabbing}
	    ------ \= ---- \= ---- \= ---- \= ---- \= ---- \= ---- \kill
} {
	\end{tabbing}
	\end{tt}
	\end{small}
}

\newcommand{\n}{
	\addtocounter{line_number}{1}
	\arabic{line_number}
}

\newcommand{\tab}{\>}

\lstset{
language=C++,
basicstyle=\scriptsize,
commentstyle=\textsl,
keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
tabsize=4,
captionpos=b,
frame=tb,
numberstyle=\footnotesize,
title=\lstname,
numbers=left,
emph={Real}, emphstyle=\color{BrickRed},
emph={[3]aReal, aDouble}, emphstyle={[3]\color{Aquamarine}}
}

\renewcommand{\lstlistingname}{Listado}

